package com.braveman.im.ui.weiget;

import android.app.ProgressDialog;
import android.content.Context;
import android.text.TextUtils;


/**
 * Created by wei.shuxin on 2017/2/3.
 */

public class CustomProgressDailog extends ProgressDialog {
    private Context context;

    public CustomProgressDailog(Context context) {
        super(context);
        this.context = context;
    }

    @Override
    public void setTitle(CharSequence title) {
        if (!TextUtils.isEmpty(title)) {
            super.setTitle(title);
        }
    }

    @Override
    public void setMessage(CharSequence message) {
        if (TextUtils.isEmpty(message)) {
            message = "加载中,请稍后";
        }
        super.setMessage(message);
    }
}
